@extends('store::layout')
@push('styles')
    <link href="{{asset(config('store.plugin').'/layui/layui_ext/cascader/cascader.css')}}" rel="stylesheet">
@endpush
@section('content')
    <div class="row mb-5"><div class="col-sm-12">
            @component('store::component.form.form')
                @slot('action') {{route('Store_Goods_create')}} @endslot
                @slot('formId') goods @endslot
                <ul class="nav nav-tabs tabs-bordered nav-justified">
                    <li class="nav-item">
                        <a href="#base" data-toggle="tab" class="nav-link active">基本信息</a>
                    </li>
                    <li class="nav-item">
                        <a href="#price" data-toggle="tab" class="nav-link">
                            商品价格
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="#attr" data-toggle="tab"  class="nav-link">
                            商品属性
                        </a>
                    </li>
                </ul>
                <div class="tab-content">
                    @include('store::goods.add_section.goods_base')
                    @include('store::goods.add_section.goods_price')
                    @include('store::goods.add_section.goods_attr')
                </div>
            @endcomponent
    </div></div>
@endsection
@include('store::component.upload.upload_js')
@push('scripts')
    <script src="{{asset(config('store.theme.theme2').'/js/shop.js')}}"></script>
    <script>
    layui.use(['jquery','layer','myCascader'], function(){
        var cascader = layui.myCascader;
        cascader.selectCategory({elemId:"#category",valueId:"#category-value"});
    });
</script>
@endpush